* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-size: 100px;
}

.layout {
  width: 100vw;
  min-height: 100vh;
  padding: 0.15rem 0.3rem 0 0.3rem;
  position: relative;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}

.layout img {
  display: block;
}

.layout .bg-img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

@font-face {
  font-family: 'pangmen';
  src: url("../font/pangmen.otf");
}

.layout .back-btn {
  width: 0.72rem;
  height: 0.37rem;
  margin-right: auto;
  margin-bottom: 0.15rem;
}

.layout .state-text-box {
  font-size: 0.2rem;
  color: #BF0D0D;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.layout .state-text-box .fail-text {
  margin-bottom: 0 !important;
}

.layout .score {
  text-shadow: 0px 0.07rem 0.06rem rgba(55, 12, 0, 0.71);
  -webkit-text-stroke: 0.03rem #FFFFFF;
  font-size: 1.28rem;
  color: #BF0D0D;
  line-height: 0.9rem;
  font-family: 'pangmen';
  margin-bottom: 0.5rem;
}

.layout .icon {
  width: 1.24rem;
  height: 0.37rem;
  margin-bottom: 0.17rem;
}

.layout .treasure-box .desc-text {
  margin-bottom: 0.1rem;
  font-size: 0.12rem;
  color: #BF0D0D;
  letter-spacing: 3px;
}

.layout .yellow-box {
  width: 0.92rem;
  height: 0.95rem;
  margin: 0 auto;
}

.layout .fail-text, .layout .state-text-box .fail-text {
  font-size: 0.2rem;
  color: #000;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.layout .fail-img {
  /* Chrome, Safari, Opera */
  filter: grayscale(80%);
}

.layout .next {
  display: none;
}

.tips-box {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  text-align: center;
  padding-top: 40%;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 0.18rem;
}

.tips-box p {
  margin-bottom: 0.1rem;
}
